//#define __FORCE_TRACE__
//#define __FORCE_distanceEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "math\fn_getPos3D.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;
private["_position","_height","_out"];
_height = 0;
if (IS_ARRAY(_this select 0)) then {
	_position = _this select 0;
	_height = _this select 1;
} else {
	_position = _this;
};
_out = [_position select 0, _position select 1, _height];
TRACE_1("End",_out);
TMFPROFILERSTOP;
_out;